import java.io.*;


class FileOutputStreamDemo 
{
	public static void main(String[] args) throws IOException
	{
		FileOutputStream fos = new FileOutputStream("fos.txt");

		fos.write("abcdef".getBytes());
		
		fos.close();


	}
}
